HAL DTS migration: List of applicable concepts ¶
This section provides information about the HAL DTS applicable architecture concepts.
Concepts for DTS ¶
|
Concept |
Description |
|---|---|
|
The initialization has been split into separate init and config functions:
|
|
|
Removal and conversion of init structure to configuration structure |
The legacy init structure is removed. Configuration is now provided through
|
|
The handle structure has been renamed to
|
|
|
The functions
|
|
|
New APIs have been introduced to get and set DTS features. |
|
|
Two functions are available to set and get user data:
|
|
|
Individual callback registration APIs replace global register and unregister functions |
The callback registration is handled by specific functions for each DTS event. These functions are used to register callback functions for different DTS events. |
|
Global
|
|
|
The DTS state machine now is split in :
|
|
|
The HAL DTS functions were updated to return:
|
|
|
New APIs for filtering optional asynchronous process interrupts |
Introduce
|
|
All TypeDef parts of the HAL DTS driver have been removed and replaced by
|
|
|
Const keywords have been added to non-modifiable pointers to ensure that either the pointer itself or the data it points to cannot be modified. This enhances code safety and readability, prevents unintended modifications, and renders code more robust and maintainable. |
|
|
The
|
|
|
Remove EXTI Intrinsic Management in System HAL Drivers; Let Users Rely on EXTI HAL Driver. |
EXTI handling is delegated to the EXTI HAL driver. |
|
Add HAL PPP Services for Drivers with Handle to Retrieve Corresponding Peripheral Clock Frequency. |
New API to retrieve the peripheral clock frequency:
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including DTS instances) have been converted into enumerated types (enums) at HAL level. This improves code readability, maintainability, and type safety. |
|
IRQ handler order optimized (critical events first). |
|
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL DTS functions start with
|